<?php
$dsn      = 'mysql:dbname=qas_quran; host=127.0.0.1; port=3306';
$username = 'root';
$password = 'kosong';
$options  = array(
    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
);

try {
    $pdo  = new \PDO($dsn, $username, $password, $options);
    $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
} catch (\PDOException $e) {
    ?>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">ERROR</h1>
        </div>
    </div>
    <?php
    echo '<div class="alert alert-danger">Connection failed : ' . $e->getMessage().'</div>';
    exit;
}
